/* 学院课程页面专用样式 */

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.page-banner h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.4em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.main-content {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* 搜索和筛选区域 */
.search-filter-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 41, 16, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 41, 16, 0.3);
}

/* 课程统计 */
.course-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 课程网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 课程卡片 */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
}

.course-thumbnail.has-image {
    background-size: cover;
    background-position: center 30%;
}

.course-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.course-card:hover .play-icon {
    background: rgba(220, 41, 16, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.course-info {
    padding: 24px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.course-category {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-rating .stars {
    color: #ffc107;
}

.course-rating .rating-score {
    font-weight: 500;
}

.course-duration {
    color: #999;
    font-size: 13px;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
}

.video-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    margin-top: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1001;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 32px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 水印系统样式 */
.video-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    user-select: none;
}



/* 水印文字 */
.watermark-text {
    position: absolute;
    bottom: 60px;
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 时间戳水印 */
.watermark-time {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* 浮动水印 */
.watermark-floating {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: bold;
    animation: floatingWatermark 20s linear infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes floatingWatermark {
    0% {
        top: 10%;
        left: 10%;
        transform: rotate(0deg);
    }
    25% {
        top: 20%;
        left: 80%;
        transform: rotate(5deg);
    }
    50% {
        top: 70%;
        left: 70%;
        transform: rotate(-5deg);
    }
    75% {
        top: 60%;
        left: 20%;
        transform: rotate(3deg);
    }
    100% {
        top: 10%;
        left: 10%;
        transform: rotate(0deg);
    }
}

/* 防录屏保护层 */
.video-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0.02;
}

.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.video-error ul {
    text-align: left;
    margin: 15px 0;
}

.video-error li {
    margin: 5px 0;
}

.retry-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #1565c0;
}

.video-info {
    padding-top: 20px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.video-meta .course-category {
    background: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

.video-meta .view-count,
.video-meta .video-duration {
    color: #666;
    font-size: 14px;
}

.video-description {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

/* 评分区域 */
.rating-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.rating-section h4 {
    margin-bottom: 16px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    font-size: 20px;
    color: #ffc107;
}

.stars i.far {
    color: #ddd;
}

.rating-text {
    color: #666;
    font-size: 15px;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-input {
    cursor: pointer;
}

.rating-input i {
    transition: color 0.3s ease;
    font-size: 18px;
}

.rating-input i:hover,
.rating-input i.active {
    color: #ffc107 !important;
}

/* 评论区域 */
.comments-section h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.comment-form {
    margin-bottom: 32px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 41, 16, 0.1);
}

.submit-comment-btn {
    margin-top: 12px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #f9f9f9;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 500;
    color: #333;
}

.comment-time {
    color: #999;
    font-size: 13px;
}

.comment-content {
    color: #666;
    line-height: 1.5;
    font-size: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.pagination button {
    padding: 12px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 32px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 24px;
    color: #ddd;
}

.empty-state h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 20px;
}

/* 简洁底部样式 */
.footer-simple {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 48px 0 32px 0;
    gap: 48px;
}

.footer-brand {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 6px;
}

.footer-tagline {
    color: #6c757d;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 0;
}

.footer-nav {
    display: flex;
    gap: 64px;
    flex: 1;
}

.footer-nav-section {
    min-width: 120px;
}

.footer-nav-section h4 {
    font-size: 1em;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 16px;
}

.footer-nav-section a {
    display: block;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-nav-section a:hover {
    color: var(--primary-color);
}

.footer-qr {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-qr h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 16px;
    margin-top: 0;
    text-align: center;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 320px;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-qr-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.footer-qr-img:hover {
    transform: scale(1.05);
}

.footer-qr-item span {
    font-size: 0.7em;
    color: #6c757d;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #e9ecef;
}

.footer-copyright {
    display: flex;
    gap: 24px;
}

.footer-copyright span {
    color: #6c757d;
    font-size: 0.9em;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-main {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .footer-brand {
        flex: 0 0 auto;
    }
    
    .footer-nav {
        gap: 48px;
    }
    
    .footer-qr {
        flex: 0 0 auto;
    }
    
    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 250px;
    }
    
    .footer-qr-img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 60px;
    }
    
    .page-banner h1 {
        font-size: 2.4em;
    }
    
    .page-banner p {
        font-size: 1.2em;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .search-filter-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }
    
    .search-box {
        margin-bottom: 30px;
    }
    
    .search-box input {
        padding: 15px 22px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 11px 16px;
        font-size: 14px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-nav-section {
        min-width: 0;
    }
    
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 170px;
    }
    
    .footer-qr-img {
        width: 50px;
        height: 50px;
    }
    
    .footer-qr-item span {
        font-size: 0.65em;
        line-height: 1.1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 8px;
    }
    
    .course-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .stat-item {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    /* 手机端统计项样式优化 */
    @media (max-width: 480px) {
        .stat-item {
            padding: 20px 15px;
        }
        
        .stat-number {
            font-size: 1.8em;
        }
        
        .stat-label {
            font-size: 14px;
        }
    }
    
    .filter-tabs {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .video-container {
        margin-bottom: 25px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .video-meta .course-category {
        padding: 7px 16px;
        font-size: 13px;
    }
    
    .video-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rating-section h4 {
        font-size: 17px;
    }
    
    .comments-section h4 {
        font-size: 17px;
    }
    
    .comment-form textarea {
        min-height: 110px;
        font-size: 14px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-nav-section {
        min-width: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    /* 搜索筛选区域优化 */
    .search-filter-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .search-box {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .search-box input {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 25px;
    }
    
    .search-btn {
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 14px;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 10px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
        border-width: 1px;
    }
    
    /* 课程统计优化 */
    .course-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }
    
    /* 课程卡片优化 */
    .course-card {
        margin: 0 -5px;
    }
    
    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination button {
        padding: 10px 14px;
        font-size: 13px;
    }
    

    
    .watermark-text {
        bottom: 50px;
        left: 10px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .watermark-time {
        bottom: 10px;
        right: 10px;
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .watermark-floating {
        font-size: 14px;
    }
    
    /* 视频模态框手机端优化 */
    .video-modal.active {
        padding: 0;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        padding: 15px 20px;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 1002;
        background: white;
        border-bottom: 1px solid #eee;
    }
    
    .modal-header h3 {
        font-size: 16px;
        line-height: 1.3;
        flex: 1;
        margin-right: 10px;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }
    
    .video-container {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .video-info {
        padding-top: 15px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .video-meta .course-category {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .video-meta .view-count,
    .video-meta .video-duration {
        font-size: 13px;
    }
    
    .video-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    /* 评分区域手机端优化 */
    .rating-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .rating-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .stars i {
        font-size: 18px;
    }
    
    .rating-text {
        font-size: 14px;
    }
    
    .user-rating {
        gap: 10px;
    }
    
    .rating-input i {
        font-size: 16px;
    }
    
    /* 评论区域手机端优化 */
    .comments-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .comment-form textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .submit-comment-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .comment-item {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .comment-content {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 错误提示手机端优化 */
    .video-error {
        padding: 15px;
        border-radius: 6px;
        max-width: 90%;
        font-size: 14px;
    }
    
    .video-error ul {
        margin: 10px 0;
    }
    
    .video-error li {
        margin: 3px 0;
        font-size: 13px;
    }
    
    .retry-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 4px;
    }
} 

/* 俱乐部小程序提示区域 */
.club-promotion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.promotion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.promotion-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.promotion-text i {
    font-size: 24px;
    color: var(--primary-color);
}

.promotion-text span {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.promotion-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.promotion-qr .qr-code {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.promotion-qr .qr-code:hover {
    transform: scale(1.05);
}

.promotion-qr .qr-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .club-promotion {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .promotion-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .promotion-text {
        flex-direction: column;
        gap: 10px;
    }
    
    .promotion-text i {
        font-size: 20px;
    }
    
    .promotion-text span {
        font-size: 16px;
    }
    
    .promotion-qr .qr-code {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    .club-promotion {
        padding: 25px 15px;
        margin-top: 30px;
    }
    
    .promotion-text span {
        font-size: 15px;
    }
    
    .promotion-qr .qr-code {
        width: 75px;
        height: 75px;
    }
    
    .promotion-qr .qr-label {
        font-size: 13px;
    }
} 

/* 表单弹窗样式 */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.form-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.form-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.close-form-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-form-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 41, 16, 0.1);
}

/* 自定义服务输入框样式 */
#customService {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

#customService:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 41, 16, 0.1);
    background-color: white;
}

.submit-form-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-form-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 倒计时提示 */
.time-limit-notice {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1002;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-modal.active {
        padding: 10px;
    }
    
    .form-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .form-header {
        padding: 25px 20px 15px;
    }
    
    .form-header h3 {
        font-size: 18px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .submit-form-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 20px 15px 10px;
    }
    
    .form-header h3 {
        font-size: 16px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .submit-form-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
} 